import React, { useContext } from 'react'
import context from '../context'
export default function Son() {
    // let data = useContext(context)
    // console.log('Son data:' , data); // {username:'atguigu',age:10}
    let {username,age} = useContext(context)
    return (
        <div>
            <h4>Son</h4>
            <p>username:{username}</p>
            <p>age:{age}</p>
        </div>
    )
}
